package cn.kgc.spring.day05.service.impl;

import cn.kgc.spring.day05.annotations.Time;
import cn.kgc.spring.day05.service.TeacherService;
import org.springframework.stereotype.Service;

/**
 * @author 课工场
 * @date 2024/7/17
 * @description
 */
@Service("teacherService")
public class TeacherServiceImpl implements TeacherService {


    // @Time
    @Override
    public void teachOnline(String course) {

        System.out.println(course+"线上课程进行中...");

        // int i = 1/0;
    }

    @Time
    @Override
    public String teachOffline(String course,String teacherName) {

        System.out.println(teacherName+"的"+course+"线下课程进行中...");

        return course+":"+teacherName;
    }
}
